package com.example.cny.activity;

import androidx.recyclerview.widget.RecyclerView;

import com.example.cny.R;
import com.example.cny.adapter.BluetoothListAdapter;
import com.example.cny.presenter.DevicesPresenter;
import com.example.mylibrary.base.BaseActivity;
import com.example.mylibrary.base.BaseNoDaggerActivity;
import com.example.mylibrary.db.bean.BluetoothBean;
import com.example.mylibrary.di.component.BaseComponent;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;

public class ChooseDevicesActivity extends BaseNoDaggerActivity {
    @BindView(R.id.bluetooth_list_view)
    RecyclerView bluetoothListView;

    @Override
    protected int getLayoutRes() {
        return R.layout.activity_choose_devices;
    }

    @Override
    protected void initData() {
        initRecyclerView();

    }

    private void initRecyclerView(){
        List<BluetoothBean> list = new ArrayList<>();
        BluetoothListAdapter adapter = new BluetoothListAdapter(R.layout.layout_bluetooth_item,list);
        bluetoothListView.setAdapter(adapter);
    }
}
